
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-naozhong"></use>
                    </svg>
                    <div class="name">闹钟</div>
                    <div class="fontclass">#icon-naozhong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fangweizhiban"></use>
                    </svg>
                    <div class="name">防卫值班</div>
                    <div class="fontclass">#icon-fangweizhiban</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-renwu"></use>
                    </svg>
                    <div class="name">任务</div>
                    <div class="fontclass">#icon-renwu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-ruzhirenyuan"></use>
                    </svg>
                    <div class="name">入职人员</div>
                    <div class="fontclass">#icon-ruzhirenyuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-renwu1"></use>
                    </svg>
                    <div class="name">任务</div>
                    <div class="fontclass">#icon-renwu1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon79"></use>
                    </svg>
                    <div class="name">任务</div>
                    <div class="fontclass">#icon-icon79</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wenti"></use>
                    </svg>
                    <div class="name">问题</div>
                    <div class="fontclass">#icon-wenti</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yanzhengma-"></use>
                    </svg>
                    <div class="name">验证码-01</div>
                    <div class="fontclass">#icon-yanzhengma-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhanghu-"></use>
                    </svg>
                    <div class="name">账户-01</div>
                    <div class="fontclass">#icon-zhanghu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mima-"></use>
                    </svg>
                    <div class="name">密码-01</div>
                    <div class="fontclass">#icon-mima-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jixiaopeizhi"></use>
                    </svg>
                    <div class="name">绩效配置</div>
                    <div class="fontclass">#icon-jixiaopeizhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jihuaxingzhi-"></use>
                    </svg>
                    <div class="name">计划性质-01</div>
                    <div class="fontclass">#icon-jihuaxingzhi-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-paixu-"></use>
                    </svg>
                    <div class="name">排序-01</div>
                    <div class="fontclass">#icon-paixu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shaixuan-"></use>
                    </svg>
                    <div class="name">筛选-01</div>
                    <div class="fontclass">#icon-shaixuan-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-renwuguanli-"></use>
                    </svg>
                    <div class="name">任务管理-01</div>
                    <div class="fontclass">#icon-renwuguanli-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-paibanguanli-"></use>
                    </svg>
                    <div class="name">排班管理-01</div>
                    <div class="fontclass">#icon-paibanguanli-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pingjia-"></use>
                    </svg>
                    <div class="name">评价-01</div>
                    <div class="fontclass">#icon-pingjia-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shanchu-"></use>
                    </svg>
                    <div class="name">删除-01</div>
                    <div class="fontclass">#icon-shanchu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-sousuo-"></use>
                    </svg>
                    <div class="name">搜索-01</div>
                    <div class="fontclass">#icon-sousuo-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shijian-"></use>
                    </svg>
                    <div class="name">时间-01</div>
                    <div class="fontclass">#icon-shijian-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-siji-"></use>
                    </svg>
                    <div class="name">司机-01</div>
                    <div class="fontclass">#icon-siji-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-suohuicaidan-"></use>
                    </svg>
                    <div class="name">缩回菜单-01</div>
                    <div class="fontclass">#icon-suohuicaidan-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shitu-"></use>
                    </svg>
                    <div class="name">视图-01</div>
                    <div class="fontclass">#icon-shitu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianjia-"></use>
                    </svg>
                    <div class="name">添加-01</div>
                    <div class="fontclass">#icon-tianjia-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xitongguanli-"></use>
                    </svg>
                    <div class="name">系统管理-01</div>
                    <div class="fontclass">#icon-xitongguanli-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiala-"></use>
                    </svg>
                    <div class="name">下拉-01</div>
                    <div class="fontclass">#icon-xiala-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wentikuguanli-"></use>
                    </svg>
                    <div class="name">问题库管理-01</div>
                    <div class="fontclass">#icon-wentikuguanli-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xialaxuanze-"></use>
                    </svg>
                    <div class="name">下拉选择-01</div>
                    <div class="fontclass">#icon-xialaxuanze-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuexihuodong-"></use>
                    </svg>
                    <div class="name">学习活动-01</div>
                    <div class="fontclass">#icon-xuexihuodong-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xuanze-"></use>
                    </svg>
                    <div class="name">选择-01</div>
                    <div class="fontclass">#icon-xuanze-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhuanye-"></use>
                    </svg>
                    <div class="name">专业-01</div>
                    <div class="fontclass">#icon-zhuanye-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yuegongguanli-"></use>
                    </svg>
                    <div class="name">约工管理-01</div>
                    <div class="fontclass">#icon-yuegongguanli-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhanxiancaidan-"></use>
                    </svg>
                    <div class="name">展现菜单-01</div>
                    <div class="fontclass">#icon-zhanxiancaidan-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhidaoshu-"></use>
                    </svg>
                    <div class="name">指导书-01</div>
                    <div class="fontclass">#icon-zhidaoshu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhishikuguanli-"></use>
                    </svg>
                    <div class="name">知识库管理-01</div>
                    <div class="fontclass">#icon-zhishikuguanli-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-banzu-"></use>
                    </svg>
                    <div class="name">班组-01</div>
                    <div class="fontclass">#icon-banzu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bangongtongzhi-"></use>
                    </svg>
                    <div class="name">办公通知-01</div>
                    <div class="fontclass">#icon-bangongtongzhi-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-biaoqian-"></use>
                    </svg>
                    <div class="name">标签-01</div>
                    <div class="fontclass">#icon-biaoqian-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-banzuguanli-"></use>
                    </svg>
                    <div class="name">班组管理-01</div>
                    <div class="fontclass">#icon-banzuguanli-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-beizhu-"></use>
                    </svg>
                    <div class="name">备注-01</div>
                    <div class="fontclass">#icon-beizhu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bumen-"></use>
                    </svg>
                    <div class="name">部门-01</div>
                    <div class="fontclass">#icon-bumen-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-daochu-"></use>
                    </svg>
                    <div class="name">导出-01</div>
                    <div class="fontclass">#icon-daochu-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dianyadengji-"></use>
                    </svg>
                    <div class="name">电压等级-01</div>
                    <div class="fontclass">#icon-dianyadengji-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cheliang-"></use>
                    </svg>
                    <div class="name">车辆-01</div>
                    <div class="fontclass">#icon-cheliang-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-cheliangguanli-"></use>
                    </svg>
                    <div class="name">车辆管理-01</div>
                    <div class="fontclass">#icon-cheliangguanli-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fengxiandengji-"></use>
                    </svg>
                    <div class="name">风险等级-01</div>
                    <div class="fontclass">#icon-fengxiandengji-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gongzuodidian-"></use>
                    </svg>
                    <div class="name">工作地点-01</div>
                    <div class="fontclass">#icon-gongzuodidian-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gongzuofangshi-"></use>
                    </svg>
                    <div class="name">工作方式-01</div>
                    <div class="fontclass">#icon-gongzuofangshi-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gongzuoleibie-"></use>
                    </svg>
                    <div class="name">工作类别-01</div>
                    <div class="fontclass">#icon-gongzuoleibie-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-erweimaguanli-"></use>
                    </svg>
                    <div class="name">二维码管理-01</div>
                    <div class="fontclass">#icon-erweimaguanli-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guanbi-"></use>
                    </svg>
                    <div class="name">关闭-01</div>
                    <div class="fontclass">#icon-guanbi-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guanlian-"></use>
                    </svg>
                    <div class="name">关联-01</div>
                    <div class="fontclass">#icon-guanlian-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shouye-"></use>
                    </svg>
                    <div class="name">首页-01</div>
                    <div class="fontclass">#icon-shouye-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jixiaobaobiao-"></use>
                    </svg>
                    <div class="name">绩效报表-01</div>
                    <div class="fontclass">#icon-jixiaobaobiao-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jixiaoshezhi-"></use>
                    </svg>
                    <div class="name">绩效设置-01</div>
                    <div class="fontclass">#icon-jixiaoshezhi-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-biandianzhan-"></use>
                    </svg>
                    <div class="name">变电站-01</div>
                    <div class="fontclass">#icon-biandianzhan-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shanchufenlei-"></use>
                    </svg>
                    <div class="name">删除分类-01</div>
                    <div class="fontclass">#icon-shanchufenlei-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianjiazifenlei-"></use>
                    </svg>
                    <div class="name">添加子分类-01</div>
                    <div class="fontclass">#icon-tianjiazifenlei-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bianjifenlei-"></use>
                    </svg>
                    <div class="name">编辑分类-01</div>
                    <div class="fontclass">#icon-bianjifenlei-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xinjianmobanyemianAPPfanhui-"></use>
                    </svg>
                    <div class="name">新建模板页面APP返回-01</div>
                    <div class="fontclass">#icon-xinjianmobanyemianAPPfanhui-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianjia-1"></use>
                    </svg>
                    <div class="name">添加-01</div>
                    <div class="fontclass">#icon-tianjia-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guanlian-1"></use>
                    </svg>
                    <div class="name">关联-01</div>
                    <div class="fontclass">#icon-guanlian-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-erweima-"></use>
                    </svg>
                    <div class="name">二维码-01</div>
                    <div class="fontclass">#icon-erweima-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-moban-"></use>
                    </svg>
                    <div class="name">模板-01</div>
                    <div class="fontclass">#icon-moban-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bianji"></use>
                    </svg>
                    <div class="name">编辑</div>
                    <div class="fontclass">#icon-bianji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-daorudaochu"></use>
                    </svg>
                    <div class="name">导入导出</div>
                    <div class="fontclass">#icon-daorudaochu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chakanerweima"></use>
                    </svg>
                    <div class="name">查看二维码</div>
                    <div class="fontclass">#icon-chakanerweima</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
